package com.hyh.core.web;

import com.hyh.websocket.support.WebSocketServerSupport;
import org.springframework.stereotype.Component;

import javax.websocket.server.ServerEndpoint;

/**
 * 继承WebSocketServerSupport轻松实现websocket
 * 亦可以重写WebSocketServerSupport类里的方法
 *
 * @Author: heyuhua
 * @Date: 2021/1/7 15:56
 */
@ServerEndpoint("/websocket/{userId}")
@Component
public class WebSocketServer extends WebSocketServerSupport {


}
